package com.gome.ocean.dao.model.datax;

import java.util.Date;

import com.gome.framework.base.BaseBO;

/**
 * @作者 liuqingxia
 * @创建时间 2016-01-21 16:09:12
 * @版本 1.00
 */
public class JobHistoryBO extends BaseBO {

    private static final long serialVersionUID = 6159771848099377438L;
    /** 主键id */
    private Long              tJobId;
    /** 所属资源组，外键 */
    private Long              projectId;
    /** 所属资源组，以后变为非null */
    private String            pipelineName;
    /** 执行脚本 */
    private String            executeName;
    /** job的配置信息 */
    private String            context;
    /** 外界标志 */
    private String            traceId;
    /** 提交的用户 */
    private String            submitUser;
    /** 提交时间 */
    private Date              submitTime;
    /** 实例提交的客户端ip */
    private String            submitIp;
    /** 开始执行时间 */
    private Date              startTime;
    /** 结束的用户 */
    private String            endUser;
    /** 表达式 */
    private String            cronExpression;
    /** 结束时间 */
    private Date              endTime;
    /** 实例运行log的地址 */
    private String            logUrl;
    /** 执行id */
    private String            executeId;
    /** 执行所在机器ip */
    private String            executeIp;
    /** 实例状态，0-success，1-submit，2-init，3-run，4-fail，5-kill，255-unknown */
    private Integer           state;
    /** 实例总条数 */
    private Long              totalRecords;
    /** 实例总bytes数 */
    private Long              totalBytes;
    /** 实例运行速度 */
    private Long              speedRecords;
    /** 实例运行bytes速度 */
    private String            speedBytes;
    /** 实例错误总条数 */
    private Long              errorRecords;
    /** 实例错误总bytes数 */
    private Long              errorBytes;
    /** 实例错误信息 */
    private String            errorMessage;

    public Long getTJobId() {
        return this.tJobId;
    }

    public void setTJobId(Long tJobId) {
        this.tJobId = tJobId;
    }

    public Long getProjectId() {
        return this.projectId;
    }

    public void setProjectId(Long projectId) {
        this.projectId = projectId;
    }

    public String getPipelineName() {
        return this.pipelineName;
    }

    public void setPipelineName(String pipelineName) {
        this.pipelineName = pipelineName;
    }

    public String getExecuteName() {
        return this.executeName;
    }

    public void setExecuteName(String executeName) {
        this.executeName = executeName;
    }

    public String getContext() {
        return this.context;
    }

    public void setContext(String context) {
        this.context = context;
    }

    public String getTraceId() {
        return this.traceId;
    }

    public void setTraceId(String traceId) {
        this.traceId = traceId;
    }

    public String getSubmitUser() {
        return this.submitUser;
    }

    public void setSubmitUser(String submitUser) {
        this.submitUser = submitUser;
    }

    public Date getSubmitTime() {
        return this.submitTime;
    }

    public void setSubmitTime(Date submitTime) {
        this.submitTime = submitTime;
    }

    public String getSubmitIp() {
        return this.submitIp;
    }

    public void setSubmitIp(String submitIp) {
        this.submitIp = submitIp;
    }

    public Date getStartTime() {
        return this.startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public String getEndUser() {
        return this.endUser;
    }

    public void setEndUser(String endUser) {
        this.endUser = endUser;
    }

    public Date getEndTime() {
        return this.endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public String getLogUrl() {
        return this.logUrl;
    }

    public void setLogUrl(String logUrl) {
        this.logUrl = logUrl;
    }

    public String getExecuteId() {
        return this.executeId;
    }

    public void setExecuteId(String executeId) {
        this.executeId = executeId;
    }

    public String getExecuteIp() {
        return this.executeIp;
    }

    public void setExecuteIp(String executeIp) {
        this.executeIp = executeIp;
    }

    public Integer getState() {
        return this.state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public Long getTotalRecords() {
        return this.totalRecords;
    }

    public void setTotalRecords(Long totalRecords) {
        this.totalRecords = totalRecords;
    }

    public Long getTotalBytes() {
        return this.totalBytes;
    }

    public void setTotalBytes(Long totalBytes) {
        this.totalBytes = totalBytes;
    }

    public Long getSpeedRecords() {
        return this.speedRecords;
    }

    public void setSpeedRecords(Long speedRecords) {
        this.speedRecords = speedRecords;
    }

    public String getSpeedBytes() {
        return this.speedBytes;
    }

    public void setSpeedBytes(String speedBytes) {
        this.speedBytes = speedBytes;
    }

    public Long getErrorRecords() {
        return this.errorRecords;
    }

    public void setErrorRecords(Long errorRecords) {
        this.errorRecords = errorRecords;
    }

    public Long getErrorBytes() {
        return this.errorBytes;
    }

    public void setErrorBytes(Long errorBytes) {
        this.errorBytes = errorBytes;
    }

    public String getErrorMessage() {
        return this.errorMessage;
    }

    public void setErrorMessage(String errorMessage) {
        this.errorMessage = errorMessage;
    }

    public String getCronExpression() {
        return cronExpression;
    }

    public void setCronExpression(String cronExpression) {
        this.cronExpression = cronExpression;
    }

    @Override
    public String toString() {
        return "JobHistoryBO [tJobId=" + tJobId + ", projectId=" + projectId + ", pipelineName=" + pipelineName
               + ", executeName=" + executeName + ", context=" + context + ", traceId=" + traceId + ", submitUser="
               + submitUser + ", submitTime=" + submitTime + ", submitIp=" + submitIp + ", startTime=" + startTime
               + ", endUser=" + endUser + ", cronExpression=" + cronExpression + ", endTime=" + endTime + ", logUrl="
               + logUrl + ", executeId=" + executeId + ", executeIp=" + executeIp + ", state=" + state + ", stage="
               + ", totalRecords=" + totalRecords + ", totalBytes=" + totalBytes + ", speedRecords=" + speedRecords
               + ", speedBytes=" + speedBytes + ", errorRecords=" + errorRecords + ", errorBytes=" + errorBytes
               + ", errorMessage=" + errorMessage + "]";
    }
}
